﻿Imports System.Web.Mvc
Imports Ninject
Imports Ninject.Web.Mvc

<Assembly: WebActivator.PreApplicationStartMethod(GetType(Asindo3.AppStart_NinjectMVC3), "Start")>

Namespace Asindo3
	Public NotInheritable Class AppStart_NinjectMVC3
		Private Sub New()
		End Sub

		Public Shared Sub Start()
			' Create Ninject DI Kernel 
			Dim kernel As IKernel = New StandardKernel(New NinjectAsindoModule())

			' Tell ASP.NET MVC 3 to use our Ninject DI Container 
            DependencyResolver.SetResolver(New NinjectDependencyResolver(kernel))
		End Sub
	End Class
End Namespace
